﻿using UnityEngine;
using System.Collections;

public class EventRotate:EventTweenBase{
	public Transform m_Target;
	public Vector3Event Rotate;
	public void Start(){
		if (m_Target == null)
			GameObject.Destroy (this);
		if(m_PlayStart)
			m_Target.localEulerAngles = Rotate.Lerp (easyType, 0);
	}
	protected override void UpdateEvent(){
		if(CanTween)
			m_Target.localEulerAngles = Rotate.Lerp (easyType, EventTime);
	}
}